﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace WcfRestSample
{
    [DataContract]
    public class Objeto
    {
        [DataMember]
        public string nombre { get; set; }
        [DataMember]
        public int valor { get; set; }

        public Objeto() { }
        public Objeto(string nombreParam, int valorParam)
        {
            this.nombre = nombreParam;
            this.valor = valorParam;
        }
    }
}